package com.java.demo;


import com.java.demo.controller.UserController2;
import com.java.demo.controller.UserController3;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-config.xml");






        UserController2 userController2 = context.getBean("userController2",UserController2.class);
        userController2.doMethod();


    }
}
